﻿<UserControl x:Class="ColorPicker.UCbutton"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:sys="clr-namespace:System;assembly=mscorlib"
             mc:Ignorable="d" 
             d:DesignHeight="30" d:DesignWidth="30"
             Width="30" Height="30"
             >
    <UserControl.Resources>
        <sys:Double x:Key="buttonSide">30</sys:Double>
    </UserControl.Resources>

    <Grid x:Name="grid1" Background="White" Margin="1" PreviewMouseLeftButtonDown="grid1_PreviewMouseLeftButtonDown">
        <Border x:Name="borderOuter" BorderThickness="1" BorderBrush="Black" CornerRadius="4" Padding="0"  HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
                <TextBlock x:Name="textInternal" Text="" FontWeight="ExtraBold" Focusable="False" VerticalAlignment="Center" HorizontalAlignment="Center" TextAlignment="Center"/>
        </Border>
    </Grid>
</UserControl>
